<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

Route::post('login/token', 'User/login');
Route::post('change/passwd', 'User/loginPasswd');
Route::resource('user', 'User');

Route::get('goods/list', 'Goods/index');
Route::get('goods/store', 'Goods/getStoreGoods');
Route::resource('goods', 'Goods');

Route::get('house/list', 'House/index');
Route::put('house/sell/:id', 'House/sell');
Route::resource('house', 'House');
Route::post('house/count', 'House/houseCount');
Route::post('house/multi', 'House/houseMultiAdd');
Route::post('house/inout', 'House/houseInOut');

Route::get('house-in/detail', 'HouseIn/detailList');
Route::put('house-in/check', 'HouseIn/check');
Route::delete('house-in/detail/:id', 'HouseIn/deleteDetail');
Route::post('house-in/export', 'HouseIn/export');
Route::resource('house-in', 'HouseIn');

Route::get('house-out/delete', 'House/deleteHouseOut');
Route::get('house-out/order', 'HouseOut/order');
Route::post('house-out/export', 'HouseOut/export');
Route::resource('house-out', 'HouseOut');

Route::get('process/detail', 'Process/getProcessData');
Route::post('process/count', 'Process/processCount');
Route::post('process/handle', 'Process/handleSave');
Route::delete('process/delete', 'Process/deleteProcess');
Route::post('process/export', 'Process/export');
Route::resource('process', 'Process');

Route::get('store/list', 'Store/index');
Route::get('store/all', 'User/StoreAll');

Route::get('store-inner/print/:id', 'StoreInner/print');
Route::put('store-inner/check', 'StoreInner/check');
Route::resource('store-inner', 'StoreInner');

Route::get('store-outer/number', 'StoreOuter/getByNum');
Route::post('store-outer/export', 'StoreOuter/export');
Route::resource('store-outer', 'StoreOuter');

Route::get('store-loss/number', 'StoreLoss/getByNumber');
Route::resource('store-loss', 'StoreLoss');

Route::post('export-inout', 'Export/inout');
Route::post('export-test', 'Export/test');
Route::post('testBug', 'Export/testBug');
Route::post('export-dateout', 'Export/dateOutExport');
Route::post('export-inout-detail', 'Export/houseInOut');

Route::resource('category', 'Category');
Route::post('store-back/export', 'StoreBack/export');
Route::resource('store-back', 'StoreBack');

Route::put('allocation/check', 'Allocation/check');
Route::resource('allocation', 'Allocation');


